package com.hqyj.shop.pojo;

import java.util.List;

public class Detail <T>{
    private int detailId;       //详情id
    private int orderId;        //订单id
    private int goodsId;        //货物id
    private int saleNum;        //销售数量
    private int orderPrice;     //销售单价
    private int dealedStatus;   //状态变更
    private String statusName;  //订单状态
    private int orderStatus;

    private List<T> list;

    public Detail() {
    }



    public Detail(int detailId, int orderId, int goodsId, int saleNum, int orderPrice, int orderStatus) {
        this.detailId = detailId;
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.saleNum = saleNum;
        this.orderPrice = orderPrice;
        this.orderStatus = orderStatus;
    }

    public Detail(int orderId, int goodsId, int saleNum) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.saleNum = saleNum;
    }


    public Detail(int detailId, int orderId, int goodsId, int saleNum, String statusName) {
        this.detailId = detailId;
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.saleNum = saleNum;
        this.statusName = statusName;
    }

    public Detail(int detailId, int orderId, int goodsId, int saleNum, int orderPrice, int dealedStatus, String statusName) {
        this.detailId = detailId;
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.saleNum = saleNum;
        this.orderPrice = orderPrice;
        this.dealedStatus = dealedStatus;
        this.statusName = statusName;
    }

    public Detail(int orderId, int goodsId, int saleNum, int orderPrice, int dealedStatus, String statusName) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.saleNum = saleNum;
        this.orderPrice = orderPrice;
        this.dealedStatus = dealedStatus;
        this.statusName = statusName;
    }


    public Detail(int detailId, int orderId, int goodsId, int saleNum, int orderPrice, int dealedStatus, String statusName, List<T> list) {
        this.detailId = detailId;
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.saleNum = saleNum;
        this.orderPrice = orderPrice;
        this.dealedStatus = dealedStatus;
        this.statusName = statusName;
        this.list = list;
    }

    public int getDetailId() {
        return detailId;
    }

    public void setDetailId(int detailId) {
        this.detailId = detailId;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }

    public int getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(int orderPrice) {
        this.orderPrice = orderPrice;
    }

    public int getDealedStatus() {
        return dealedStatus;
    }

    public void setDealedStatus(int dealedStatus) {
        this.dealedStatus = dealedStatus;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }



    @Override
    public String toString() {
        return "Detail{" +
                "detailId=" + detailId +
                ", orderId=" + orderId +
                ", goodsId=" + goodsId +
                ", saleNum=" + saleNum +
                ", orderPrice=" + orderPrice +
                ", dealedStatus=" + dealedStatus +
                ", statusName='" + statusName + '\'' +
                ", list=" + list +
                '}';
    }
}
